import axios from 'axios';
import { CONTENTLIST_DATA, CHANGE_LOADING_STATUS } from '../types/contentListType';


export const getContentListData = () => (dispatch) => {
  axios({
    method: 'get',
    url: './static/json/homelist.json',
  }).then((res) => {
    dispatch({
      type: CONTENTLIST_DATA,
      data: res.data.data.poilist,
    });
  });
};

export const changeLoadingStatus = status => ({
  type: CHANGE_LOADING_STATUS,
  data: status,
});
